package bx.com.smartcashier.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import bx.com.smartcashier.R;

public class ReturnGoodsSucessedActivity extends AppCompatActivity {

    TextView tvReturn_Home;
    Button btnReturnHome,btnReturnCashRegister;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_return_goods_sucessed);

        initViews();
        setOnlistners();
    }

    private void setOnlistners() {
        tvReturn_Home.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(ReturnGoodsSucessedActivity.this,HomeActivity.class);
                startActivity(intent);
                finish();
            }
        });

        btnReturnHome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(ReturnGoodsSucessedActivity.this,HomeActivity.class);
                startActivity(intent);
                finish();

            }
        });
        btnReturnCashRegister.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(ReturnGoodsSucessedActivity.this,ReturnGoodsActivity.class);
                startActivity(intent);
                finish();
            }
        });
    }

    private void initViews() {
        tvReturn_Home=findViewById(R.id.tv_return_home);
        btnReturnHome=findViewById(R.id.btn_return_home);
        btnReturnCashRegister=findViewById(R.id.btn_go_cashregister);
    }

}
